package com.nobody.facepk.model;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Type;

import com.nobody.facepk.persist.PersistentSupport;

@Entity
@Table(name="T_USER_FRIENDS")
public class Friends extends PersistentSupport{
	private Long userId;
	private Set<Long> friendIds = new HashSet<Long>();
	
	public Long getUserId() {
		return this.userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	
	@Type(type="com.nobody.facepk.persist.type.LongSet")
	@Column(name="friendIds",columnDefinition = "varchar(2048) default null")
	public Set<Long> getFriendIds() {
		return this.friendIds;
	}
	public void setFriendIds(Set<Long> friendIds) {
		this.friendIds = friendIds;
	}
}
